package org.bot.server.flow.service;

import org.bot.server.client.entity.BotClient;
import org.bot.server.flow.entity.BotFlow;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author 沧月
 * @create 0021 2023/9/21 14:03
 * @description <description class purpose>
 */
public interface BotFlowService {

    List<Map<String,Object>> list(String name, Integer clientId,Integer page, Integer size);

    Integer listCount(String name);

    boolean delete(Integer id);

    boolean save(BotFlow botFlow);

    boolean edit(BotFlow botFlow);

    boolean updateFlowInfo(Integer id,String x6JSON, String botJSON);

    List<BotClient> getClientList();

    BotFlow getFlowInfo(Integer id);

    boolean executeFlow(Integer id);

    boolean disable(String id, Integer status);

    void downloadFlow(HttpServletResponse response, String ids);

    boolean uploadFlow(MultipartFile file);
}
